home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #4 / K-CD-4-2002.ISO / Empire Earth / EEDemo.exe / Disk1 / data.ssa / unit ai scripts_eagle.tai < prev    next >
Encoding:
Text File  |  2001-09-29  |  1.5 KB  |  103 lines

  1. //
  2. // Air unit AI file
  3. //
  4. // Behaviors:
  5. //
  6. //        When enemy air is spotted around airfield, takes off pursues and attacks until enemy
  7. //            (or self) is destroyed or fuel runs out, then returns to airfield.
  8. //
  9. //    Notes:
  10. //
  11. //    Known Problems:
  12. //
  13.  
  14.  
  15. Fly
  16. {
  17.     ArrivedAtMoveWaypoint true(ContinueToFly)
  18. }    
  19.  
  20. ContinueToFly
  21. {
  22.     NextWaypointRetrieved true(Fly) false(Circle)    
  23. }
  24.  
  25. Circle
  26. {
  27.     GoalIsExplore true(FindUnexploredArea)    
  28. }
  29.  
  30. RunFromAttacker
  31. {
  32.     AlwaysTrue true(PrepareToMove)
  33. }
  34.  
  35. Takeoff
  36. {
  37.     MovePreparationComplete true(Taxi)
  38. }
  39.  
  40. // Taxi
  41. Taxi
  42. {
  43.     ArrivedAtMoveWaypoint true(ContinueToTaxi)
  44. }
  45.  
  46. ContinueToTaxi
  47. {
  48.     WaypointInAir true(Fly)
  49.     WaypointOnGround true(Taxi)
  50.     NextWaypointRetrieved false(BoardTransport)
  51. }
  52.  
  53.  
  54. // Land
  55. Land
  56. {
  57.     MovePreparationComplete true(Descend)
  58. }
  59.  
  60. // Descend
  61. Descend
  62. {
  63.     ArrivedAtMoveWaypoint true(ContinueToDescend)
  64. }
  65.  
  66. ContinueToDescend
  67. {
  68.     WaypointIsSameElevation true(Brake)
  69.     anyof(WaypointIsHigherElevation,WaypointIsLowerElevation) true(Descend)
  70.     NextWaypointRetrieved false(BoardTransport)
  71. }
  72.  
  73. // Brake
  74. Brake
  75. {
  76.     ArrivedAtMoveWaypoint true(ContinueToBrake)
  77. }
  78.  
  79. ContinueToBrake
  80. {
  81.     NextWaypointRetrieved true(Brake) false(BoardTransport)
  82. }
  83.  
  84. // land on the ground
  85. BoardTransport
  86. {
  87.     BoardedTransport true(Idle)
  88. }
  89.  
  90. // Moving
  91. PrepareToMove
  92. {
  93.     MovePreparationComplete true(Fly)
  94. }
  95.  
  96. FindUnexploredArea
  97. {
  98.     SearchingForAreaToExplore true(FindUnexploredArea)
  99.     NoUnexploredAreasLeft true(Circle) false(PrepareToMove)
  100. }
  101.  
  102. #include("Generic Death.tai")
  103.